﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="v_leftmenu.ascx.cs" Inherits="administrator_uc_admin_v_leftmenu" %>
<%@ Register src="~/administrator/uc_admin/mn_edit.ascx" tagname="mn_edit" tagprefix="uc1" %>
<asp:Panel ID="PanelView" runat="server">
<table cellspacing="1" class="classtable">
    <tr>
        <td class="classtitle" colspan="2">
        CHI TIẾT
        </td>
    </tr>
    <tr>
        <td class="classmessage" colspan="2">
            <asp:Label ID="lblMessageView" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            MenuID:</td>
        <td class="classcolright">
            <asp:Literal ID="ltMenuID" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Thuộc nhóm:</td>
        <td class="classcolright">
            <asp:Literal ID="ltParentName" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Tiêu đề:</td>
        <td class="classcolright">
            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Mô tả:</td>
        <td class="classcolright">
            <asp:Literal ID="ltDescription" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Liên kết:</td>
        <td class="classcolright">
            <asp:Literal ID="ltUrl" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Target:</td>
        <td class="classcolright">
            <asp:Literal ID="ltTarget" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Thứ tự sắp xếp:</td>
        <td class="classcolright">
            <asp:Literal ID="ltOrderIndex" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Hiển thị:</td>
        <td class="classcolright">
            <asp:Literal ID="ltActive" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            &nbsp;</td>
        <td class="classcolright">
            <script language="javascript">
                function CallFuncEditItem() {
                    document.getElementById('<%= btnEditItem.ClientID%>').click();
                }	
            </script>
            <uc1:mn_edit ID="mn_edit" runat="server" /> 
            <asp:Button ID="btnEditItem" runat="server" CssClass="featurehidden" onclick="btnEditItem_Click" />
            <asp:LinkButton ID="lbtCloseFormView" runat="server" 
                OnClientClick="javascript:window.close();" CausesValidation="False">
            <img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b>
            </asp:LinkButton>
         </td>
    </tr>
</table>
</asp:Panel>
<asp:Panel ID="PanelEdit" runat="server">
<table cellspacing="1" class="classtable">
    <tr>
        <td class="classtitle" colspan="2">
        CẬP NHẬT
        </td>
    </tr>
    <tr>
        <td class="classmessage" colspan="2">
            <asp:Label ID="lblMessageEdit" runat="server"></asp:Label>
            <asp:HiddenField ID="hdItemID" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            ParentID:</td>
        <td class="classcolright">
            <asp:DropDownList ID="DropdownParentID" runat="server" Width="250px" AppendDataBoundItems="true">
                <asp:ListItem Value="0">---Chọn menu cha---</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Tiêu đề:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtTitle" runat="server" Width="300px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtTitle" ErrorMessage="(*)"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Mô tả:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtDescription" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Liên kết:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtUrl" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Target:</td>
        <td class="classcolright">
            <asp:RadioButtonList ID="rdTarget" runat="server" 
                RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="0">_self</asp:ListItem>
                <asp:ListItem Value="1">_blank</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Thứ tự sắp xếp:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtSortIndex" CssClass="classtextsort" runat="server" Width="80px"></asp:TextBox>
            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                ControlToValidate="txtSortIndex" ErrorMessage="(0-&gt;1000)" 
                MaximumValue="1000" MinimumValue="0" Type="Integer"></asp:RangeValidator>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Hiển thị:</td>
        <td class="classcolright">
            <asp:RadioButtonList ID="rdActive" runat="server" 
                RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">Có</asp:ListItem>
                <asp:ListItem Value="0">Không</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            &nbsp;</td>
        <td class="classcolright">
            <asp:LinkButton ID="lbtUpdateItem" runat="server" onclick="lbtUpdateItem_Click">
            <img src="../images/icons/icon_edit.png" border="0px" /> <b>Cập Nhật</b>
            </asp:LinkButton>
            ||
            <asp:LinkButton ID="lbtCloseFormEdit" runat="server" 
                OnClientClick="javascript:CloseWindows();" CausesValidation="False">
            <img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b>
            </asp:LinkButton>
         </td>
    </tr>
</table>
</asp:Panel>

